<template>
  <button @click="pay()" id="b">测试支付</button>
</template>

<script>
export default {
  methods: {
    pay: function() {
      this.$router.push({
        name: 'yanzhengma',
        params: {
          a: 1,
        },
      })
    },
  },
}
</script>

<style>
#b {
  width: 100px;
  height: 100px;
  background-color: orange;
}
</style>
